-
Notifications
You must be signed in to change notification settings - Fork 15
Implement the Custom Endpoint Plugin #727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| hostnames = [host_info.host for host_info in hosts] | ||
| if self._reader_host_info is not None and self._reader_host_info.host not in hostnames: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will hit this block whenever read_only is set to True. Are there performance concerns for this block? It is necessary to protect against the case where we have previously cached a reader instance connection but that reader instance was later removed from the custom endpoint. Without this check the read/write plugin would continue to use the cached reader connection to the now-blocked instance.
Description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.